﻿using System;
using System.Data;
using NazSoft.Framework;

public partial class RecoverPassword : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnRecover_Click(object sender, EventArgs e)
    {
        object[] objName = { "Email"};
        object[] objValue = { txtEmailId.Text};
        SqlHelper helpclass = new SqlHelper();

        DataTable dt = helpclass.GetDataTable("SpGetUserByUserID", objName, objValue);
        if (dt.Rows.Count <= 0)
        {
            lblError.Text = " Your provided email address not valid";
            lblError.Visible = true;
        }
        else
        {
            Response.Redirect("PassRecoverThanks.aspx",true);
        }

    }
}
